package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetmealDishMapper {
    /**
     * 看菜品id中与几个套餐有关联
     * @param dishIds
     * @return
     */
    Long selectSetmealDishCount(List<Long> dishIds);

    void insertBatch(List<SetmealDish> setmealDishes);

    @Select("select * from setmeal_dish where setmeal_id=#{setmealId}")
    List<SetmealDish> selectBySetmealId(Long setmealId);

    void deleteBatch(List<Long> setmealIds);
}
